<table style="width:100%;" cellspacing="0" cellpadding="4">
    <tr>
    <td class="border2" style="font-size:7pt;background:#FFFFFF url(design/images/pollbg.jpg) no-repeat right bottom;" >
 
        <table style="width:100%;" class="mainmenu5" cellspacing="0" cellpadding="4">
        <tr>
        <td style="font-size:8pt;">
            <b>RANDOM POLLS</b>
        </td>
        <td style="font-size:7pt;text-align:right;">
            <span class="cur" id="hidetext2" onclick="SwitchMenu('sub2','hidetext2')">[-]</span>
        </td>
        </tr>
        </table>
        <div class="submenu" id="sub2">
		<table style="width:100%;height:100px;" cellspacing="0" cellpadding="5">
    <tr>
    <td style="font-size:7pt;">         
        <table style="width:100%;" cellspacing="0" cellpadding="0">
{if $aItem}
        <tr>
        <td style="font-size:7pt;vertical-align:top;">
		<form method="post" action="{url link='public.poll.vote' id=$aItem.id}" style="margin:0px;">
            <table width="100%"  border="0" cellspacing="5" cellpadding="5">
  <tr>
    <td width="30%" style="vertical-align:top;text-align:center;">

<a href="{url link='public.user' name=$aItem.user}">
{img src="`$sUImageUrl``$aItem.user`_60.jpg" src_def="design/pic/noimage_60.jpg" alt="" class="pic1" onmouseover="showInfo5('`$aItem.user`', '', '');this.className='pic2';" onmouseout="this.className='pic1';return nd();"}</a>
<br/><b><a href="{url link='public.user' name=$aItem.user}">{$aItem.user}</a></b>
</td>
    <td width="70%">
            <div style="font-size:7pt;font-weight:bold;" class="color">
            <div style="text-align:left;">
            {$aItem.poll}
            </div>
            <div style="padding-left:20px;"><br/>
{if $aItem.o1 != ''}<div><input type="radio" name="answer" class="pollinput" value="1" style="vertical-align:middle;" />{$aItem.o1}</div>{/if}
{if $aItem.o2 != ''}<div><input type="radio" name="answer" class="pollinput" value="2" style="vertical-align:middle;" />{$aItem.o2}</div>{/if}
{if $aItem.o3 != ''}<div><input type="radio" name="answer" class="pollinput" value="3" style="vertical-align:middle;" />{$aItem.o3}</div>{/if}
{if $aItem.o4 != ''}<div><input type="radio" name="answer" class="pollinput" value="4" style="vertical-align:middle;" />{$aItem.o4}</div>{/if}
            </div>
{if !$bVoted}
            <div style="padding:5px;text-align:right;">
                <input type="submit" value=" VOTE " />
            </div>
{/if}
            </div>	</td>
  </tr>
</table>
</form>
        </td>
        </tr>
{if $bVoted}
        <tr>
        <td style="vertical-align:top;">
            <div style="font-size:7pt;text-align:right;">
                <a href="{url link='public.poll.view' id=$aItem.id}">VIEW POLLS RESULTS</a>
            </div>
        </td>
        </tr>
{/if}
{else}
        <tr>
        <td style="vertical-align:top;">
            <div style="font-weight:bold;color:green;padding:5px;font-size:11px;text-align:center;">
            There are no polls!
            </div>        </td>
        </tr>
{/if}
        
        </table>
<div style="font-size:7pt;text-align:left;">
            <a href="{url link='public.account.submit.add-poll'}">ADD YOUR POLL</a>
            </div>
        </td>
    </tr>
    </table>
		</div>
    </td>
    </tr>
   </table>


